<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>


</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>iframe</title>
<style>#roomList{ width:100%; height:440px;  text-align:center; margin:0 auto;  overflow:hidden;}
ul{ width:90%; height:inherit; float:right;}
ul li{ float:left; display:block; width:100px; height:100px; background-color:#fff; margin:10px; border:1px solid;text-align:center}
.page_break{
height:25px;
line-height:25px;
margin-top:-50px;
text-align:center;
}
.page_break strong{
font-size:12px;
padding-left:8px;
padding-right:8px;
border:1px solid #FB9504;
background:#FFFBDE;
padding-top:4px;
padding-bottom:2px;
margin-left:6px;}
.page_break a{
padding-left:8px;
padding-right:8px;
border:1px solid #E1E1E1;
background:#fff;
font-size:12px;
padding-top:4px;
padding-bottom:2px;
color:#07519a;
text-decoration:none;
margin-left:6px;
}
.page_break a:hover{
padding-left:8px;
padding-right:8px;
border:1px solid #FB9504;
background:#FFFBDE;
}

</style>
</head>
<body>
<?php if ($this->paginator ){?>
<div id="roomList">
<?php if (count($this->paginator)):?>
<ul>
<?php
foreach ($this->paginator as $v) :
    ?>
<li><?php
    echo $v['name']; 
    ?><br></br><a href="<?php echo $this->url(array('room'=>$v['officeid']));?>">预约挂号</a></li>
<?php
endforeach
;
?>
</ul>
<?php endif;?>
</div>



<div id="page">
<?php if(count($this->paginator)==1){
	die();//如果页面等于1，不现实分页
}?>
<?=$this->paginationControl($this->paginator, 'Elastic', 'pagelist.phtml'); ?>
</div>
<?php }else{?>
<div id="doctor">
<ul>

<?php foreach ($this->doctor as $p):?>
<li><?php echo $p['doctorName'];?><br><br><?php echo $p['name']?>
<br /><br><a  href="<?php echo $this->baseUrl('/guahao/guahaolist?doctorID='.$p['doctorID']);?>">预约挂号</a>

</li>
<?php endforeach;?>

</ul>
</div>
<?php }?>
</body>
</html>
